package JLB_Chapter_07;
class Computer3 {
    String sayHello() {
        return "欢迎使用";
    }
}
public class Pad3 extends Computer3{
    String sayHello() {
        return super.sayHello() + "平板电脑";
    }
    public static void main(String[] args) {
        Computer3 pc = new Computer3();
        System.out.println(pc.sayHello());
        Pad3 ipad = new Pad3();
        System.out.println(ipad.sayHello());
    }
}
